

import request from "@/plugins/request";

var pre = "/inteCater/foodBeverages/dishThumbs";

if (process.env.NODE_ENV !== "development") {
  pre = "/api/sa/smar-catering" + pre;
}


// 点赞
export function editThumbs(data) {
    return request({
        url: `${pre}/editThumbs?dishId=${data}`,
        method: "get"
    });
}

// 取消
export function editThumbsCancel(data) {
    return request({
        url: `${pre}/editThumbsCancel?dishId=${data}`,
        method: "get"
    });
}

// 分页查询菜肴
export function getPage(data) {
    return request({
        url: `${pre}/getPage`,
        method: "post",
        data
    });
}